Gcc_select version 0.1 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    gcc_select  most recent diff


    version 0.1

      View the most recent changes for the gcc_select port at: gcc_select.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for gcc_select.
      The raw portfile for gcc_select 0.1 is located here:
      http://gcc_select.darwinports.com/dports/sysutils/gcc_select/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/gcc_select


      The gcc_select Portfile 58258 2009-09-25 00:50:56Z raimue macports.org $

      PortSystem 1.0

      Name: gcc_select
      Version: 0.1
      Revision: 4
      Category: sysutils
      Platform: darwin
      Maintainers: mww
      Description: Switch the default compiler
      Long Description: gcc_select lets you switch the default compiler. It symlinks the standard compiler executables in the MacPorts prefix to the selected version.

      Homepage: http://svn.macports.org/repository/macports/contrib/select/
      Master Sites: ${homepage}
      distname select-${version}
      Checksums: sha1 18e1f95c2ddd88210aa52eb696261859af2dc3a4

      configure.args --mandir=${prefix}/share/man --name=gcc

      post-destroot {
      xinstall -m 644 -W ${filespath} base ${destroot}${prefix}/etc/select/gcc
      }

      # install & select gcc33
      platform darwin 7 {
      post-destroot {
      xinstall -m 644 -W ${filespath} gcc33 ${destroot}${prefix}/etc/select/gcc
      system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc33"
      }
      }

      # install gcc33, gcc40 & select gcc40
      platform darwin 8 powerpc {
      post-destroot {
      xinstall -m 644 -W ${filespath} gcc40 gcc33 ${destroot}${prefix}/etc/select/gcc
      system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc40"
      }
      }

      # install & select gcc40
      platform darwin 8 i386 {
      post-destroot {
      xinstall -m 644 -W ${filespath} gcc40 ${destroot}${prefix}/etc/select/gcc
      system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc40"
      }
      }

      # install & select gcc40
      platform darwin 9 {
      post-destroot {
      xinstall -m 644 -W ${filespath} gcc40 gcc42 llvm-gcc42 ${destroot}${prefix}/etc/select/gcc
      system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc40"
      }
      }

      # install & select gcc42
      platform darwin 10 {
      post-destroot {
      xinstall -m 644 -W ${filespath} gcc40 gcc42 llvm-gcc42 ${destroot}${prefix}/etc/select/gcc
      system "${destroot}${prefix}/bin/${name} -i ${destroot} gcc42"
      }
      }

      livecheck.type none

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/gcc_select
      % sudo port install gcc_select
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching gcc_select
      ---> Verifying checksum for gcc_select
      ---> Extracting gcc_select
      ---> Configuring gcc_select
      ---> Building gcc_select with target all
      ---> Staging gcc_select into destroot
      ---> Installing gcc_select
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using gcc_select with these commands:
      %  man gcc_select
      % apropos gcc_select
      % which gcc_select
      % locate gcc_select

     Where to find more information:

    Darwin Ports



    Lightbox this page.